import { 
  listInspectionTask, 
  getInspectionTask, 
  delInspectionTask, 
  addInspectionTask, 
  updateInspectionTask,
  exportInspectionTask
} from "@/api/qep/inspection";

/** 导出按钮操作 */
function handleExport() {
  proxy.$modal.confirm('是否确认导出所有检验任务数据?').then(() => {
    return exportInspectionTask(queryParams);
  }).then(response => {
    proxy.$download.excel(response, `检验任务数据_${new Date().getTime()}.xlsx`);
  }).catch((error) => {
    console.error('导出失败:', error);
  });
} 